import { observable, action, runInAction } from "mobx";
import { getCarData } from 'apis/car'
import { message } from 'antd'

class Store {
  @observable
  brand = "BWM";

  @observable
  title = "12";

  @action.bound
  async changeCarData() {
    let res = await getCarData()
    runInAction(() => {
      this.title = res.data.data.title
    })
  }
}

export default new Store();
